package com.interauto.bean.httpinfo;

import com.interauto.bean.autoenum.HttpEnum;

import java.util.Map;

public class HttpRequestBean {
    private HttpEnum.HttpType httptype;  //请求协议类型,http还是https
    private HttpEnum.HttpMeth httpmeth;  //请求方式，是get还是post
    private String httpurl;  //具体地址
    private Map<String,String> httpheader;  //请求头
    private Map<String,String> httpcookie;  //请求cookie
    /**
     * //如果是post，对应的请求参数类型
     * 1=json,2=x-www-from
     */
    private Integer postparamtype;
    /**
     * //对应的参数,  //如果是get参数，统一set到url里，这里不做特殊处理
     * post-json，就直接是字符串
     * 如果是x-www-from。还是json，方便统一处理。
     */
    private String httpparam;


    public HttpEnum.HttpType getHttptype() {
        return httptype;
    }

    public void setHttptype(HttpEnum.HttpType httptype) {
        this.httptype = httptype;
    }

    public HttpEnum.HttpMeth getHttpmeth() {
        return httpmeth;
    }

    public void setHttpmeth(HttpEnum.HttpMeth httpmeth) {
        this.httpmeth = httpmeth;
    }

    public String getHttpurl() {
        return httpurl;
    }

    public void setHttpurl(String httpurl) {
        this.httpurl = httpurl;
    }

    public Map<String, String> getHttpheader() {
        return httpheader;
    }

    public void setHttpheader(Map<String, String> httpheader) {
        this.httpheader = httpheader;
    }

    public Map<String, String> getHttpcookie() {
        return httpcookie;
    }

    public void setHttpcookie(Map<String, String> httpcookie) {
        this.httpcookie = httpcookie;
    }

    public Integer getPostparamtype() {
        return postparamtype;
    }

    public void setPostparamtype(Integer postparamtype) {
        this.postparamtype = postparamtype;
    }

    public String getHttpparam() {
        return httpparam;
    }

    public void setHttpparam(String httpparam) {
        this.httpparam = httpparam;
    }

    @Override
    public String toString() {
        return "HttpRequestBean{" +
                "httptype=" + httptype +
                ", httpmeth=" + httpmeth +
                ", httpurl='" + httpurl + '\'' +
                ", httpheader=" + httpheader +
                ", httpcookie=" + httpcookie +
                ", postparamtype=" + postparamtype +
                ", httpparam='" + httpparam + '\'' +
                '}';
    }
}
